const CryptoJs = require('crypto-js')

var r = exports.timeStamp = function() {
    return Math.round((new Date).getTime() / 1e3)
}
function get_data() {
    var n = r().toString()
        , s = CryptoJs.MD5(n).toString()
        , u = "request_url=".concat("client/search/house", "&content=").concat(n, "&request_method=").concat("get", "&timestamp=").concat(n, "&secret=").concat(s)
        , l = CryptoJs.MD5(u).toString();
    return "timestamp=".concat(n, ";oauth2=").concat(s, ";signature=").concat(l, ";secret=").concat(s)
}
